package com.xxgc.eow.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-25
 */
@Getter
@Setter
@Schema(name = "Recommendlibrary", description = "")
public class Recommendlibrary implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "推荐id")
    @TableId(value = "recommend_id", type = IdType.AUTO)
    private Integer recommendId;

    @Schema(description = "题库id")
    private Integer topicLibraryId;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "销毁时间")
    private LocalDateTime destoryTime;

    @Schema(description = "假删除状态")
    private Byte tip;

    @Override
    public String toString() {
        return "Recommendlibrary{" +
                "recommendId=" + recommendId +
                ", topicLibraryId=" + topicLibraryId +
                ", createTime=" + createTime +
                ", destoryTime=" + destoryTime +
                ", tip=" + tip +
                '}';
    }

    public Recommendlibrary() {
    }

    public Recommendlibrary(Integer recommendId, Integer topicLibraryId, LocalDateTime createTime, LocalDateTime destoryTime, Byte tip) {
        this.recommendId = recommendId;
        this.topicLibraryId = topicLibraryId;
        this.createTime = createTime;
        this.destoryTime = destoryTime;
        this.tip = tip;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getRecommendId() {
        return recommendId;
    }

    public void setRecommendId(Integer recommendId) {
        this.recommendId = recommendId;
    }

    public Integer getTopicLibraryId() {
        return topicLibraryId;
    }

    public void setTopicLibraryId(Integer topicLibraryId) {
        this.topicLibraryId = topicLibraryId;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getDestoryTime() {
        return destoryTime;
    }

    public void setDestoryTime(LocalDateTime destoryTime) {
        this.destoryTime = destoryTime;
    }

    public Byte getTip() {
        return tip;
    }

    public void setTip(Byte tip) {
        this.tip = tip;
    }
}
